package com.ww.service;

import com.ww.mapper.UserMapper;
import com.ww.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService{

    @Autowired
    UserMapper mapper;
    public User getUser(int id) {
        org.apache.ibatis.logging.LogFactory.useLog4JLogging();
        return mapper.selectUser(id);
    }
}
